<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/8/31
 * Time: 10:30
 */

namespace Common\Model;


use Think\Model\MongoModel;

class QipaiModel extends MongoModel
{
    public function __construct($name, $tablePrefix, $connection)
    {
        $this->dbName=C("{$connection}.DB_NAME");
        parent::__construct($name, $tablePrefix, $connection);
        $this->connection=$connection;
        $this->trueTableName=$name;//要连接的那个集合（表）控制器里传过来
    }
}